package com.qk.exception;

import com.qk.code.Code;
import lombok.Getter;
import lombok.Setter;

/**
 * 自定义异常
 */

@Getter
@Setter
public class BusinessException extends RuntimeException{

    private Code code;

    public BusinessException(Code code) {
        super(code.getMsg());
        this.code = code;

    }
}